[2025-12-18 21:04:13.579] [ERROR] [Instance:1] [Function:DB_Query_Page]
    Error: 分页查询失败: mssql: 在 FETCH 语句中选项 NEXT 的用法无效。
    SQL: 表: Character, 字段: AccountID,cLevel,Class, 条件: cLevel>200, 分页: LIMIT 10 OFFSET 0
---
[2025-12-18 21:09:27.951] [ERROR] [Instance:1] [Function:DB_Query_Page]
    Error: 分页查询失败: mssql: 在 FETCH 语句中选项 NEXT 的用法无效。
    SQL: 表: Character, 字段: AccountID,cLevel,Class, 条件: cLevel>200, 分页: LIMIT 10 OFFSET 0
---
[2025-12-18 21:14:48.566] [ERROR] [Instance:1] [Function:DB_Query_Page]
    Error: 分页查询失败: mssql: 在 FETCH 语句中选项 NEXT 的用法无效。
    SQL: 表: Character, 字段: AccountID,cLevel,Class, 条件: cLevel>200, 分页: LIMIT 10 OFFSET 0
---
[2025-12-18 21:54:47.665] [ERROR] [Instance:1] [Function:DB_Query_All]
    Error: 查询失败: mssql: '(' 附近有语法错误。
    SQL: WITH NumberedRows AS (
    SELECT 
        AccountID, cLevel, Class, Inventory
        ROW_NUMBER() OVER (ORDER BY cLevel DESC) AS RowNum  -- 改为 DESC
    FROM Character 
    WHERE cLevel > ?
)
SELECT AccountID, cLevel, Class, Inventory
FROM NumberedRows
WHERE RowNum BETWEEN ? AND ?  -- 第2页：2-10
ORDER BY cLevel DESC;  -- 结果集也按 cLevel 降序排序
    Params: [200,1,10]
---
[2025-12-18 22:02:47.159] [ERROR] [Instance:1] [Function:DB_Query_All]
    Error: 查询失败: mssql: 'HEX' 不是可以识别的 内置函数名称。
    SQL: WITH NumberedRows AS (
    SELECT 
        AccountID, cLevel, Class, HEX(Inventory) as Inventory_Hex,
        ROW_NUMBER() OVER (ORDER BY cLevel DESC) AS RowNum  -- 改为 DESC
    FROM Character 
    WHERE cLevel > ?
)
SELECT AccountID, cLevel, Class, Inventory_Hex
FROM NumberedRows
WHERE RowNum BETWEEN ? AND ?  -- 第2页：2-10
ORDER BY cLevel DESC;  -- 结果集也按 cLevel 降序排序

    Params: [200,1,10]
---
